Skip to content

fix(schema): register standard JSON Schema formats via ajv-formats - #271

Merged
mindsocket merged 1 commit into
mainfrom
fix/251-standard-json-schema-formats
Nov 30, 2026
Merged

mindsocket merged 1 commit into
mainfrom
fix/251-standard-json-schema-formats

Conversation

@mindsocket

Copy link
Copy Markdown
Owner

Closes #251

Summary

  • Added ajv-formats and registered standard JSON Schema 2020-12 format annotations (uri, email, uuid, etc.) in compileValidator (src/schema/schema.ts) before registering structured-context's five custom format overrides (path, date, date-time, date-or-date-time, wikilink), matching docs/schemas.md.
  • Added regression test in tests/validate/format-validation.test.ts verifying standard formats (uri, email) compile and validate alongside custom formats (date-or-date-time).

Verification

  • bun test tests/validate/format-validation.test.ts tests/validate/dates.test.ts tests/space-graph-data.test.ts (52 pass, 0 fail, including browser bundling test)
  • lefthook pre-push (check-plugin-version, pushed-tree full test + hook suites, review-check)

@claude

claude Bot commented Nov 30, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@mindsocket
mindsocket merged commit 1ef1350 into main Nov 30, 2026
2 checks passed
@mindsocket
mindsocket deleted the fix/251-standard-json-schema-formats branch November 30, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standard JSON Schema format annotations (e.g. uri) fail schema compilation

1 participant